import React from "react";
import { createRoot } from "react-dom/client";
import { BrowserRouter } from 'react-router-dom';
import "./index.css";
import "./i18n/config.ts";
import App from "./App.tsx";
import { Provider } from 'react-redux'
import ReactDOM from "react-dom/client";
import { store } from './app/store.ts';
import ThemeProvider from "./providers/ThemeProvider.tsx";
import LanguageProvider from './providers/LanguageProvider.tsx'

createRoot(document.getElementById("root")!).render(
  <React.StrictMode>
    <Provider store={store}>
      <BrowserRouter>
        <ThemeProvider>
          <LanguageProvider>
            <App />
          </LanguageProvider>
        </ThemeProvider>
      </BrowserRouter>
    </Provider>
  </React.StrictMode>
);
